/* Buttons
/* ---------------------------------------------------------- */

/* Base button style */
/* Should only be applied to <a> tags */
.gh-btn,
.gh-btn-grey {
    display: inline-block;
    outline: none;
    background: var(--whitegrey);
    color: var(--darkgrey);
    text-decoration: none !important;
    user-select: none;
    fill: var(--white);
    font-weight: 500;
    border-radius: 3px;
    transition: all 0.2s ease;
    transition-property: color, border-color, background, width, height, box-shadow;

    -webkit-font-smoothing: subpixel-antialiased;
}

/* ALL buttons must have a span for content */
.gh-btn span,
.gh-btn-grey span {
    display: block;
    overflow: hidden;
    padding: 0 14px;
    height: 34px;
    font-size: 1.35rem;
    line-height: 34px;
    text-align: center;
    letter-spacing: 0.2px;
    border-radius: 3px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gh-btn-large span {
    height: 40px;
    padding: 0 20px;
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: .4px;
}

.gh-btn:hover,
.gh-btn-grey:hover {
    color: var(--darkgrey);
    background: var(--whitegrey-d1);
}

.gh-btn svg {
    display: inline-block;
    vertical-align: middle;
}

.gh-btn-large svg {
    width: 16px;
    height: 16px;
}

/* When disabled */
.gh-btn.disabled,
.gh-btn[disabled],
fieldset[disabled] .gh-btn {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Primary button
/* ---------------------------------------------------------- */
.gh-btn-primary,
.gh-btn-black {
    color: var(--white);
    background: var(--black);
    font-weight: 500;
}

.gh-btn-primary:hover,
.gh-btn-black:hover {
    color: var(--white);
    background: color-mod(var(--black) l(-20%)) !important;
}

/* Blue button
/* ---------------------------------------------------------- */

/* The background of the button creates 1px gradient border */
.gh-btn-blue {
    color: #fff;
    fill: #fff;
    background: var(--blue);
    font-weight: 500;
}

.gh-btn-blue:hover {
    color: #fff !important;
    background: color-mod(var(--blue) l(-4%)) !important;
}

/* When clicked or focused with keyboard */
.gh-btn-blue:active,
.gh-btn-blue:focus {
    background: color-mod(var(--blue) l(-7%)) !important;
}

/* Green button
/* ---------------------------------------------------------- */

/* The background of the button creates 1px gradient border */
.gh-btn-green {
    color: #fff;
    fill: #fff;
    background: var(--green);
    font-weight: 500;
}

.gh-btn-green:hover {
    color: #fff !important;
    background: color-mod(var(--green) l(-4%)) !important;
}

/* When clicked or focused with keyboard */
.gh-btn-green:active,
.gh-btn-green:focus {
    background: color-mod(var(--green) l(-7%)) !important;
}


/* Red button
/* ---------------------------------------------------------- */

/* The background of the button creates 1px gradient border */
.gh-btn-red {
    color: #fff;
    fill: #fff;
    box-shadow: none;
    background: var(--red);
    font-weight: 500;
}

.gh-btn-red:hover {
    color: #fff;
    background: color-mod(var(--red) l(-4%)) !important;
}

/* When clicked or focused with keyboard */
.gh-btn-red:active,
.gh-btn-red:focus {
    background: color-mod(var(--red) l(-7%)) !important;
}

/* Outline button
/* ---------------------------------------------------------- */

/* The background of the button creates 1px gradient border */
.gh-btn-outline {
    color: var(--darkgrey);
    border: 1px solid var(--lightgrey-l1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background: none;
}

.gh-btn-outline:hover {
    color: var(--black);
    background: none;
    border-color: var(--lightgrey);
}

/* When clicked or focused with keyboard */
.gh-btn-outline:active,
.gh-btn-outline:focus {
    border-color: color-mod(var(--lightgrey-l1) l(-15%));
}

.gh-btn-outline.blue {
    border-color: var(--blue);
    color: var(--blue);
    box-shadow: none;
}

.gh-btn-outline.blue:hover {
    border-color: color-mod(var(--blue) l(-10%));
    color: color-mod(var(--blue) l(-10%));
    box-shadow: none;
}


/* Button highlights
/* ---------------------------------------------------------- */

.gh-btn-hover-blue:hover {
    color: var(--blue);
    border-color: var(--blue);
}

.gh-btn-hover-green:hover {
    color: var(--green);
    border-color: var(--green);
}

.gh-btn-hover-red:hover {
    color: var(--red);
    border-color: var(--red);
}

.gh-btn-hover-background:hover {
    background: var(--lightgrey);
}


/* Special Buttons
/* ---------------------------------------------------------- */

.gh-btn-white {
    border: none;
    background: var(--white);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.01), 0 1px 2px rgba(0, 0, 0, 0.05);
    outline: none;
}

.gh-btn-white:hover {
    background: var(--white);
}

.gh-btn-white.gh-btn-green:hover,
.gh-btn-white.gh-btn-blue:hover {
    border: none;
}

.gh-btn-strong {
    border-color: color-mod(var(--midgrey) l(+25%));
}

.gh-btn-block {
    display: block;
    width: 100%;
}

.gh-btn-icon span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gh-btn-icon svg,
.gh-btn-block svg {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.6em;
}

.gh-btn-white svg {
    fill: var(--darkgrey);
}

.gh-btn-icon svg.gh-spinner {
    left: 5px;
}

.gh-btn-icon svg.gh-spinner rect {
    fill: color-mod(var(--midgrey) l(+15%));
}

.gh-btn:not(.gh-btn-blue):not(.gh-btn-green):not(.gh-btn-red) svg.gh-icon-spinner rect {
    fill: color-mod(var(--midgrey) l(-7%));
} 

.gh-btn-icon-right svg,
svg.gh-btn-icon-right {
    margin-left: 0.5em;
    margin-right: 0;
    width: auto;
    height: 16px;
}

.gh-btn-icon svg path {
    stroke: currentColor;
}

.gh-btn-icon.fill svg {
    fill: currentColor;
}

.gh-btn-icon.fill svg path {
    stroke: none;
}

.gh-btn-icon-no-margin {
    margin: 0;
}

.gh-btn-text,
.gh-btn-text:hover {
    display: flex;
    align-items: center;
    border: none;
    background: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    font-weight: 400;
}

.gh-btn-text.inline {
    display: inline-flex;
}

.gh-btn-text span {
    height: unset;
    line-height: unset;
    padding: 0;
}

.gh-btn-text.regular span {
    font-size: 1.4rem;
    color: var(--darkgrey);
}

.gh-btn-text.blue span {
    color: var(--blue);
}

.gh-btn-text.red span {
    color: var(--red);
}

.gh-btn-text.yellow span {
    color: color-mod(var(--yellow) l(-10%));
}

.gh-btn-text.green span {
    color: var(--green-d1);
}

.gh-btn-textfield-group span {
    height: 36px;
    line-height: 36px;
}

.gh-btn-text.gh-btn-warningdetails span,
.gh-btn-text.gh-btn-errordetails span {
    text-decoration: underline;
}

.gh-btn-text.gh-btn-warningdetails span {
    color: color-mod(var(--yellow) l(-8%) s(+5%));
}

.gh-btn-text.gh-btn-errordetails span {
    color: var(--red);
}

.gh-btn-action-icon {
    margin-right: 10px
}

.gh-btn-action-icon svg {
    height: 16px;
    width: 16px;
    margin: 0;
}

.gh-btn-action-icon:not(.icon-only) svg {
    margin-right: 10px;
}

.gh-btn-action-icon svg path {
    stroke: currentColor;
}

.gh-btn-label-green {
    color: var(--green);
}


/*
/* Button Variations
/* ---------------------------------------------------------- */

.gh-btn-block {
    display: block;
    width: 100%;
}

/* Vertically space out multiple block buttons */
.gh-btn-block + .gh-btn-block {
    margin-top: 5px;
}

/* Specificity overrides */
input[type="submit"].gh-btn-block,
input[type="reset"].gh-btn-block,
input[type="button"].gh-btn-block {
    width: 100%;
}


/*
/* Button Groups
/* ---------------------------------------------------------- */
/*

Usage: CTA buttons grouped together horizontally.

<div class="gh-btn-group">
    <a class="gh-btn gh-btn-green" href="#"><span>Button 1</span></a>
    <a class="gh-btn gh-btn-white" href="#"><span>Button 2</span></a>
</div>

*/

.gh-btn-group {
    display: flex;
    align-items: center;
    background: var(--whitegrey-l1);
    border-radius: 3px;
    line-height: 0;
}

.gh-btn-group .gh-btn {
    border: none;
    background: none;
    margin: 0;
    background: transparent !important;
    box-shadow: none;
    margin: 2px;
    border-radius: 2px;
    color: var(--midgrey);
}

.gh-btn-group .gh-btn span {
    border-radius: 0;
    height: 30px;
    line-height: 30px;
    border-radius: 3px;
    background: transparent !important;
    font-weight: 500 !important;
}

.gh-btn-group .gh-btn-group-selected span {
    color: var(--black);
    background: var(--white) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.gh-btn-group .gh-btn-group-selected svg {
    fill: var(--black);
}

.gh-btn-group.icons .gh-btn {
    margin: 3px;
    border-radius: 3px;
}

.gh-btn-group.icons .gh-btn span {
    height: 28px;
    padding: 0 8px;
}

.gh-btn-group.icons .gh-btn-icon svg {
    width: 16px;
    height: 16px;
    margin-right: 0;
    fill: var(--darkgrey);
}

.gh-btn-group.icons .gh-btn-group-selected svg {
    fill: var(--black);
}

.gh-btn-group.icons .gh-btn-icon svg path {
    stroke: none;
}

.gh-btn-group.small .gh-btn span {
    font-size: 0.9rem;
}

.gh-btn-block + .gh-btn-block {
    margin-top: 5px;
}

.gh-btn-link {
    border: none;
    background: none;
    box-shadow: none;
}

.gh-btn-link:hover {
    background: none;
    box-shadow: none;
}

.gh-btn-link.blue {
    color: var(--blue);
}

/* Tab buttons */
/* ---------------------------------------------------------- */
.gh-btn-tabs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    border-bottom: 1px solid var(--whitegrey);
}

.gh-btn-tabs .gh-btn {
    background: none !important;
    border-radius: 0;
    margin-right: 20px;
    border-bottom: 1px solid transparent;
}

.gh-btn-tabs .gh-btn span {
    background: none !important;
    border-radius: 0;
    padding: 0;
    color: var(--midgrey);
    font-weight: 500 !important;
}

.gh-btn-tabs .gh-btn span:hover {
    color: var(--darkgrey);
}

.gh-btn-tabs .gh-btn-tab-selected {
    border-bottom-color: var(--black);
}

.gh-btn-tabs .gh-btn-tab-selected span {
    color: var(--black);
}


/* Spin Buttons!
/* ---------------------------------------------------------- */
.spinner {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    margin: -2px 0;
    width: 14px;
    height: 14px;
    border: rgba(0,0,0,0.2) solid 4px;
    border-radius: 100px;
    animation: spin 1s linear infinite;
}

.spinner:before {
    content: "";
    display: block;
    margin-top: 6px;
    width: 4px;
    height: 4px;
    background: rgba(0,0,0,0.6);
    border-radius: 100px;
}

/* Filter buttons
/* ---------------------------------------------------------- */
.gh-btn-filter {
    height: 33px;
    line-height: 33px;
    border-radius: 0px;
    color: var(--darkgrey);
}

.gh-btn-filter.first {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.gh-btn-filter.last {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.gh-btn .gh-btn-filter-maxwidth {
    display: flex;
    align-items: center;
}

.gh-btn .gh-btn-filter-maxwidth span {
    padding: 0;
    margin: 0 4px 0 0;
    display: inline-block;
    max-width: 160px;
}

.gh-btn-filter-maxwidth svg {
    height: 4px;
    width: 6.11px;
    margin-left: 2px;
    margin-top: -2px;
    vertical-align: middle;
}

/* Stripe Connect buttons
/* ---------------------------------------------------------- */
.stripe-connect {
    display: inline-block;
    margin-bottom: 1px;

    background-image: -webkit-linear-gradient(#28A0E5, #015E94);
    background-image: -moz-linear-gradient(#28A0E5, #015E94);
    background-image: -ms-linear-gradient(#28A0E5, #015E94);
    background-image: linear-gradient(#28A0E5, #015E94);

    -webkit-font-smoothing: antialiased;
    border: 0;
    padding: 1px;
    height: 32px;
    text-decoration: none;

    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;

    -moz-box-shadow: 0 1px 0 rgba(0,0,0,0.2);
    -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);

    cursor: pointer;

    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.stripe-connect span {
    display: block;
    position: relative;
    padding: 0 12px 0 44px;
    height: 30px;

    background: #1275FF;
    background-image: -webkit-linear-gradient(#7DC5EE, #008CDD 85%, #30A2E4);
    background-image: -moz-linear-gradient(#7DC5EE, #008CDD 85%, #30A2E4);
    background-image: -ms-linear-gradient(#7DC5EE, #008CDD 85%, #30A2E4);
    background-image: linear-gradient(#7DC5EE, #008CDD 85%, #30A2E4);

    font-size: 14px;
    line-height: 30px;
    color: white;
    font-weight: bold;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);

    -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);

    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;

    white-space: nowrap;
}

.stripe-connect span:before {
    content: '';
    display: block;
    position: absolute;
    left: 11px;
    top: 50%;
    width: 23px;
    height: 24px;
    margin-top: -12px;
    background-repeat: no-repeat;
    background-size: 23px 24px;
}

.stripe-connect:active {
    background: #005D93;
}

.stripe-connect:active span {
    color: #EEE;

    background: #008CDD;
    background-image: -webkit-linear-gradient(#008CDD, #008CDD 85%, #239ADF);
    background-image: -moz-linear-gradient(#008CDD, #008CDD 85%, #239ADF);
    background-image: -ms-linear-gradient(#008CDD, #008CDD 85%, #239ADF);
    background-image: linear-gradient(#008CDD, #008CDD 85%, #239ADF);

    -moz-box-shadow: inset 0 1px 0 rgba(0,0,0,0.1);
    -webkit-box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
}

.stripe-connect.light-blue {
    background: #b5c3d8;
    background-image: -webkit-linear-gradient(#b5c3d8, #9cabc2);
    background-image: -moz-linear-gradient(#b5c3d8, #9cabc2);
    background-image: -ms-linear-gradient(#b5c3d8, #9cabc2);
    background-image: linear-gradient(#b5c3d8, #9cabc2);

    -moz-box-shadow: 0 1px 0 rgba(0,0,0,0.1);
    -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.stripe-connect.light-blue span {
    color: #556F88;
    text-shadow: 0 1px rgba(255, 255, 255, 0.8);

    background: #f0f5fa;
    background-image: -webkit-linear-gradient(#f0f5fa, #e4ecf5 85%, #e7eef6);
    background-image: -moz-linear-gradient(#f0f5fa, #e4ecf5 85%, #e7eef6);
    background-image: -ms-linear-gradient(#f0f5fa, #e4ecf5 85%, #e7eef6);
    background-image: linear-gradient(#f0f5fa, #e4ecf5 85%, #e7eef6);

    -moz-box-shadow: inset 0 1px 0 #fff;
    -webkit-box-shadow: inset 0 1px 0 #fff;
    box-shadow: inset 0 1px 0 #fff;
}

.stripe-connect.light-blue:active {
    background: #9babc2;
}

.stripe-connect.light-blue:active span {
    color: #556F88;
    text-shadow: 0 1px rgba(255, 255, 255, 0.8);

    background: #d7dee8;
    background-image: -webkit-linear-gradient(#d7dee8, #e7eef6);
    background-image: -moz-linear-gradient(#d7dee8, #e7eef6);
    background-image: -ms-linear-gradient(#d7dee8, #e7eef6);
    background-image: linear-gradient(#d7dee8, #e7eef6);

    -moz-box-shadow: inset 0 1px 0 rgba(0,0,0,0.05);
    -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,0.05);
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.05);
}

.stripe-connect.dark {
    background: #252525;
    background: rgba(0,0,0,0.5) !important;
}

/* Images*/

.stripe-connect span:before, .stripe-connect.blue span:before {
    background-image: url("");
}

.stripe-connect.light-blue span:before {
  background-image: url("");
}

/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min--moz-device-pixel-ratio: 1.5),
       only screen and (min-device-pixel-ratio: 1.5) {

  .stripe-connect span:before, .stripe-connect.blue span:before {
    background-image: url("");
  }

  .stripe-connect.light-blue span:before {
    background-image: url("");
  }
}


.gh-btn-stripe-status {
    position: relative;
    box-shadow: none;
    color: var(--darkgrey-l2);
    padding-left: 12px;
}

.gh-btn-stripe-status::before {
    position: absolute;
    content: "";
    display: block;
    top: 0;
    bottom: 0;
    height: 6px;
    width: 6px;
    margin: auto;
    background: var(--midlightgrey);
    border-radius: 999px;
}

.gh-btn-stripe-status.connected:before {
    background: var(--green);
}

.stripe-connect.disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Conditional wording for mobile to save space */
.gh-btn .gh-btn-text-hide-for-mobile {
    display: none;
}

.gh-btn-with-notification {
    position: relative;
}

.gh-btn-notification-dot {
    position: absolute;
    top: -6px;
    right: -6px;
    display: block;
    content: "";
    width: 14px !important;
    height: 14px !important;
    background: var(--green);
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px !important;
    border: 1px solid var(--main-bg-color);
}